import request from '@/utils/request'

// 查询名字热搜列表
export function listHotname(query) {
  return request({
    url: '/com/hotname/list',
    method: 'get',
    params: query
  })
}

// 查询名字热搜详细
export function getHotname(id) {
  return request({
    url: '/com/hotname/' + id,
    method: 'get'
  })
}

// 新增名字热搜
export function addHotname(data) {
  return request({
    url: '/com/hotname',
    method: 'post',
    data: data
  })
}

// 修改名字热搜
export function updateHotname(data) {
  return request({
    url: '/com/hotname',
    method: 'put',
    data: data
  })
}

// 删除名字热搜
export function delHotname(id) {
  return request({
    url: '/com/hotname/' + id,
    method: 'delete'
  })
}

// 导出名字热搜
export function exportHotname(query) {
  return request({
    url: '/com/hotname/export',
    method: 'get',
    params: query
  })
}
